package com.ruoyi.incomerecord.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 收费记录对象 house_contarct_income_record
 * 
 * @author hct
 * @date 2022-02-16
 */
public class HouseContarctIncomeRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

 
    /** 本次收费金额 */
    @Excel(name = "本次收费金额")
    private BigDecimal fee;

    /** 收费时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收费时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date feetime;

    
    /** 合同id */
    @Excel(name = "合同id")
    private Long contarctid;

    /** 项id */
    @Excel(name = "项id")
    private Long incomeId;

    /** 计划周期信息 */
    @Excel(name = "计划周期信息")
    private String contarctPlandate;

    /** 收费前已收金额 */
    @Excel(name = "收费前已收金额")
    private BigDecimal prefee;

    /** 收费后已收金额 */
    @Excel(name = "收费后已收金额")
    private String lastFee;

    /** 1收入2支出 */
    @Excel(name = "1收入2支出")
    private Long flowtype;

    /** 费用类型 1代表固定收费 2代表变化收费 */
    @Excel(name = "费用类型 1代表固定收费 2代表变化收费")
    private Integer feetype;

    /** 固定收费 1代表租金 2代表管理费，变化收费对应费用表信息 */
    @Excel(name = "固定收费 1代表租金 2代表管理费，变化收费对应费用表信息")
    private Long feetypeid;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
   
    public void setFee(BigDecimal fee) 
    {
        this.fee = fee;
    }

    public BigDecimal getFee() 
    {
        return fee;
    }
    public void setFeetime(Date feetime) 
    {
        this.feetime = feetime;
    }

    public Date getFeetime() 
    {
        return feetime;
    }
    
    public void setContarctid(Long contarctid) 
    {
        this.contarctid = contarctid;
    }

    public Long getContarctid() 
    {
        return contarctid;
    }
    public void setIncomeId(Long incomeId) 
    {
        this.incomeId = incomeId;
    }

    public Long getIncomeId() 
    {
        return incomeId;
    }
    public void setContarctPlandate(String contarctPlandate) 
    {
        this.contarctPlandate = contarctPlandate;
    }

    public String getContarctPlandate() 
    {
        return contarctPlandate;
    }
    public void setPrefee(BigDecimal prefee) 
    {
        this.prefee = prefee;
    }

    public BigDecimal getPrefee() 
    {
        return prefee;
    }
    public void setLastFee(String lastFee) 
    {
        this.lastFee = lastFee;
    }

    public String getLastFee() 
    {
        return lastFee;
    }
    public void setFlowtype(Long flowtype) 
    {
        this.flowtype = flowtype;
    }

    public Long getFlowtype() 
    {
        return flowtype;
    }
    public void setFeetype(Integer feetype) 
    {
        this.feetype = feetype;
    }

    public Integer getFeetype() 
    {
        return feetype;
    }
    public void setFeetypeid(Long feetypeid) 
    {
        this.feetypeid = feetypeid;
    }

    public Long getFeetypeid() 
    {
        return feetypeid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createTime", getCreateTime())
            .append("fee", getFee())
            .append("feetime", getFeetime())
            .append("updateTime", getUpdateTime())
            .append("contarctid", getContarctid())
            .append("createBy", getCreateBy())
            .append("incomeId", getIncomeId())
            .append("updateBy", getUpdateBy())
            .append("contarctPlandate", getContarctPlandate())
            .append("prefee", getPrefee())
            .append("lastFee", getLastFee())
            .append("flowtype", getFlowtype())
            .append("feetype", getFeetype())
            .append("feetypeid", getFeetypeid())
            .toString();
    }
}
